<template>
	<view class="home">
		<view class="navbar" style="background-color: burlywood;">
			<u-navbar title="主理" @rightClick="rightClick" leftIcon=' ' placeholder bgColor='transparent' />
			<view class="d-s-c">
				<u-avatar size="80" src=""></u-avatar>
				<view class="flex-1  white fb ml20 f36">猫在檐下憩</view>

				<view class="white ziliao">我的资料</view>
			</view>
			<view class="tags d-s-s mt30">
				<view class="white f24" v-for="(item,index) in tags" :key="index">{{item}}</view>
				<view class="white f24">+编辑标签</view>
			</view>
		</view>
		<view class="order bg-white d-b-c">
			<view class="item flex-1 d-c-c d-c">
				<u-icon name="chat" size='30'></u-icon>
				<view class="">消息</view>
			</view>
			<view class="item flex-1 d-c-c d-c">
				<u-icon name="share" size='30'></u-icon>
				<view class="">邀请好友</view>
			</view>
			<view class="item flex-1 d-c-c d-c">
				<u-icon name="checkmark-circle" size='30'></u-icon>
				<view class="">我的认证</view>
			</view>
			<view class="item flex-1 d-c-c d-c">
				<u-icon name="setting" size='30'></u-icon>
				<view class="">设置</view>
			</view>
		</view>
		<view class="line">
			<u-tabs :list="tabs" @click="setCur" :current='current' :scrollable="false"
				activeStyle='color:#1f083c;font-weight: bold' inactiveStyle="color:#555" lineColor='#1f083c'></u-tabs>
		</view>
		<view class="p20">
			<list :list="list"></list>
		</view>

		<tabbar :active='2'></tabbar>
	</view>

</template>

<script>
	import tabbar from "@/components/tabbar.vue";
	import list from "@/components/list.vue";
	export default {
		components: {
			tabbar,
			list
		},
		data() {
			return {
				tags: ['摄影', '电影/TV'],
				tabs: [{
					name: '我想参加',
				}, {
					name: '我的票夹',
				}],
				current: 0,
				list: [{
					name: "9-10月环境式驻场演唱会音乐剧阿米娅",
					urls: [],
					date: 'THU,SEP 04 - WED,OCT 08',
					address: '阿波罗尼亚 广州馆',
					status_name: '报名中',
					status: 1,
					fav: 0,
					tags: ['音乐/演出live', '戏剧']
				}, {
					name: "9-10月环境式驻场演唱会音乐剧阿米娅",
					urls: [
						'https://uviewui.com/album/1.jpg',
						'https://uviewui.com/album/2.jpg',
						'https://uviewui.com/album/3.jpg',
						'https://uviewui.com/album/4.jpg',
						'https://uviewui.com/album/7.jpg',
						'https://uviewui.com/album/6.jpg',
						'https://uviewui.com/album/5.jpg'
					],
					max: 7,
					date: 'THU,SEP 04 - WED,OCT 08',
					address: '阿波罗尼亚 广州馆',
					status_name: '已满员',
					status: 2,
					fav: 0,
					tags: ['音乐/演出live', '戏剧']
				}],
			}
		},
		methods: {
			setCur({ index }) {
				this.current = index
				// console.log(index);
			}
		}
	}
</script>

<style scoped lang="scss">
	.order {

		padding: 30rpx;
		margin: 20rpx;
		margin-top: -60rpx;
		border-radius: 10rpx;

		.item {
			gap: 20rpx;
			font-size: 26rpx;
		}
	}

	.home {
		background-color: #f8f7fa;
		min-height: 100vh;
	}

	.navbar {
		padding: 20rpx;
		padding-bottom: 100rpx;

		.ziliao {
			padding: 8rpx 30rpx;
			border-radius: 30rpx;
			background-color: rgba(255, 255, 255, .3);
		}

		.tags {
			view {
				border: 1px solid;
				padding: 6rpx 20rpx;
				border-radius: 30rpx;
				margin-right: 20rpx;
			}
		}
	}
</style>